package com.aios.action.door;

public class DoorDeleteAction extends AbstractDoorAction {
	
	private static final long serialVersionUID = 1L;
	
	public String execute() {
		try{
			int n = doorService.delete(getId());
			if(n == 0) {
				addActionError(getText("error.delete"));
			}
		}catch (Exception e) {
			//logger
			e.printStackTrace();
			addActionError(getText("error.delete"));
		}
		
		return SUCCESS;
	}
	
}
